﻿<%@ Page Title="" Language="C#" MasterPageFile="~/manager.Master" AutoEventWireup="true" CodeBehind="regis_user_admin.aspx.cs" Inherits="Bus_proj.website.regis_user_admin" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <link href="../Styles/textbox.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
        .style2
        {
            width: 395px;
        }
        .style3
        {
            width: 395px;
            height: 21px;
        }
        .style4
        {
            height: 21px;
        }
        .style5
        {
            width: 201px;
        }
        .style6
        {
            width: 209px;
        }
        .style7
        {
            width: 73px;
        }
        .style8
        {
            width: 121px;
        }
        .myButton {
	-moz-box-shadow:inset 0px 1px 0px 0px #259cc7;
	-webkit-box-shadow:inset 0px 1px 0px 0px #259cc7;
	box-shadow:inset 0px 1px 0px 0px #259cc7;
	background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #383838), color-stop(1, #000000));
	background:-moz-linear-gradient(top, #383838 5%, #000000 100%);
	background:-webkit-linear-gradient(top, #383838 5%, #000000 100%);
	background:-o-linear-gradient(top, #383838 5%, #000000 100%);
	background:-ms-linear-gradient(top, #383838 5%, #000000 100%);
	background:linear-gradient(to bottom, #383838 5%, #000000 100%);
	filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#383838', endColorstr='#000000',GradientType=0);
	background-color:#383838;
	-moz-border-radius:6px;
	-webkit-border-radius:6px;
	border-radius:6px;
	border:1px solid #0c1396;
	display:inline-block;
	cursor:pointer;
	color:#ffffff;
	font-family:arial;
	font-size:15px;
	font-weight:bold;
	padding:6px 24px;
	text-decoration:none;
	text-shadow:0px 1px 0px #1b37c2;
}
.myButton:hover {
	background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #000000), color-stop(1, #383838));
	background:-moz-linear-gradient(top, #000000 5%, #383838 100%);
	background:-webkit-linear-gradient(top, #000000 5%, #383838 100%);
	background:-o-linear-gradient(top, #000000 5%, #383838 100%);
	background:-ms-linear-gradient(top, #000000 5%, #383838 100%);
	background:linear-gradient(to bottom, #000000 5%, #383838 100%);
	filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#000000', endColorstr='#383838',GradientType=0);
	background-color:#000000;
}
.myButton:active {
	position:relative;
	top:1px;
}

    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
    <Triggers>
    <asp:AsyncPostBackTrigger ControlID="Button1" EventName="Click" />
    <asp:AsyncPostBackTrigger ControlID="Button2" EventName="Click" />
    </Triggers>
<fieldset class="el02">
<legend>ข้อมูลลูกค้า</legend>
<table class="style1">
        <tr>
            <td align="right" class="style5">
                &nbsp;</td>
            <td class="style6">
                &nbsp;</td>
            <td align="right" class="style7">
                &nbsp;</td>
            <td align="right" class="style8">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td align="right" class="style5">
                <asp:Label ID="Label1" runat="server" Text="คำนำหน้า"></asp:Label>
            </td>
            <td class="style6">
                <asp:DropDownList ID="DropDownList1" runat="server" CssClass="textbox">
                    <asp:ListItem Value="1">นาย</asp:ListItem>
                    <asp:ListItem Value="2">นางสาว</asp:ListItem>
                    <asp:ListItem Value="3">นาง</asp:ListItem>
                </asp:DropDownList>
            </td>
            <td align="right" class="style7">
                &nbsp;</td>
            <td align="right" class="style8">
                <asp:Label ID="Label7" runat="server" Text="บ้านเลขที่"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="TextBox5" runat="server" CssClass="textbox"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="TextBox5"
                Display="Dynamic" ErrorMessage="Amount is required.">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td align="right" class="style5">
                <asp:Label ID="Label2" runat="server" Text="ชื่อ"></asp:Label>
            </td>
            <td class="style6">
                <asp:TextBox ID="TextBox1" runat="server" CssClass="textbox"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBox1"
                Display="Dynamic" ErrorMessage="Amount is required.">*</asp:RequiredFieldValidator>
            </td>
            <td align="right" class="style7">
                &nbsp;</td>
            <td align="right" class="style8">
                <asp:Label ID="Label8" runat="server" Text="หมู่"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="TextBox6" runat="server" CssClass="textbox"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ControlToValidate="TextBox6"
                Display="Dynamic" ErrorMessage="Amount is required.">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td align="right" class="style5">
                <asp:Label ID="Label3" runat="server" Text="นามสกุล"></asp:Label>
            </td>
            <td class="style6">
                <asp:TextBox ID="TextBox2" runat="server" CssClass="textbox"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TextBox2"
                Display="Dynamic" ErrorMessage="Amount is required.">*</asp:RequiredFieldValidator>
            </td>
            <td align="right" class="style7">
                &nbsp;</td>
            <td align="right" class="style8">
                <asp:Label ID="Label17" runat="server" Text="ซอย"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="TextBox12" runat="server" CssClass="textbox"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right" class="style5">
                <asp:Label ID="Label4" runat="server" Text="เลขบัตรประชาชน"></asp:Label>
            </td>
            <td class="style6">
                <asp:TextBox ID="TextBox3" runat="server" CssClass="textbox"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="TextBox3"
                Display="Dynamic" ErrorMessage="Amount is required.">*</asp:RequiredFieldValidator>
            </td>
            <td align="right" class="style7">
                &nbsp;</td>
            <td align="right" class="style8">
                <asp:Label ID="Label9" runat="server" Text="ถนน"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="TextBox7" runat="server" CssClass="textbox"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right" class="style5">
                <asp:Label ID="Label5" runat="server" Text="เพศ"></asp:Label>
            </td>
            <td class="style6">
                <asp:DropDownList ID="DropDownList2" runat="server" CssClass="textbox">
                    <asp:ListItem Value="1">ชาย</asp:ListItem>
                    <asp:ListItem Value="2">หญิง</asp:ListItem>
                </asp:DropDownList>
            </td>
            <td align="right" class="style7">
                &nbsp;</td>
            <td align="right" class="style8">
                <asp:Label ID="Label12" runat="server" Text="จังหวัด"></asp:Label>
            </td>
            <td>
                <asp:DropDownList ID="DropDownList5" runat="server" AppendDataBoundItems="True" 
                    AutoPostBack="True" DataSourceID="LinqDataSource1" DataTextField="ProvinceName" 
                    DataValueField="ProvinceId" 
                    onselectedindexchanged="DropDownList5_SelectedIndexChanged" Width="150px" 
                    CssClass="textbox">
                    <asp:ListItem Selected="True" Value="0">*เลือกจังหวัด</asp:ListItem>
                </asp:DropDownList>
                <asp:LinqDataSource ID="LinqDataSource1" runat="server" 
                    ContextTypeName="Bus_proj.DataClasses1DataContext" EntityTypeName="" 
                    TableName="Provinces">
                </asp:LinqDataSource>
            </td>
        </tr>
        <tr>
            <td align="right" class="style5">
                <asp:Label ID="Label6" runat="server" Text="วัน-เดือน-ปีเกิด"></asp:Label>
            </td>
            <td class="style6">
                <asp:TextBox ID="TextBox4" runat="server" TextMode="Date" CssClass="textbox"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="TextBox4"
                Display="Dynamic" ErrorMessage="Amount is required.">*</asp:RequiredFieldValidator>
            </td>
            <td align="right" class="style7">
                &nbsp;</td>
            <td align="right" class="style8">
                <asp:Label ID="Label11" runat="server" Text="เขต/อำเภอ"></asp:Label>
            </td>
            <td>
                <asp:DropDownList ID="DropDownList4" runat="server" AppendDataBoundItems="True" 
                    AutoPostBack="True" DataSourceID="LinqDataSource2" DataTextField="AmphurName" 
                    DataValueField="AmphurId" Width="150px" 
                    onselectedindexchanged="DropDownList4_SelectedIndexChanged1" 
                    CssClass="textbox">
                    <asp:ListItem Selected="True" Value="0">*เลือกอำเภอ</asp:ListItem>
                </asp:DropDownList>
                <asp:LinqDataSource ID="LinqDataSource2" runat="server" 
                    ContextTypeName="Bus_proj.DataClasses1DataContext" EntityTypeName="" 
                    TableName="Amphurs" Where="ProvinceId == @ProvinceId">
                    <WhereParameters>
                        <asp:ControlParameter ControlID="DropDownList5" DefaultValue="0" 
                            Name="ProvinceId" PropertyName="SelectedValue" Type="Int32" />
                    </WhereParameters>
                </asp:LinqDataSource>
            </td>
        </tr>
        <tr>
            <td align="right" class="style5">
                <asp:Label ID="Label13" runat="server" Text="รหัสไปรษณีย์"></asp:Label>
            </td>
            <td class="style6">
                <asp:TextBox ID="TextBox8" runat="server" CssClass="textbox"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="TextBox8"
                Display="Dynamic" ErrorMessage="Amount is required.">*</asp:RequiredFieldValidator>
            </td>
            <td align="right" class="style7">
                &nbsp;</td>
            <td align="right" class="style8">
                <asp:Label ID="Label10" runat="server" Text="แขวง/ตำบล"></asp:Label>
            </td>
            <td>
                <asp:DropDownList ID="DropDownList3" runat="server" AppendDataBoundItems="True" 
                    AutoPostBack="True" DataSourceID="LinqDataSource3" DataTextField="DistrictName" 
                    DataValueField="DistrictId" Width="150px" CssClass="textbox">
                    <asp:ListItem Selected="True" Value="0">*เลือกตำบล</asp:ListItem>
                </asp:DropDownList>
                <asp:LinqDataSource ID="LinqDataSource3" runat="server" 
                    ContextTypeName="Bus_proj.DataClasses1DataContext" EntityTypeName="" 
                    TableName="Districts" Where="AmphurId == @AmphurId">
                    <WhereParameters>
                        <asp:ControlParameter ControlID="DropDownList4" DefaultValue="0" 
                            Name="AmphurId" PropertyName="SelectedValue" Type="Int32" />
                    </WhereParameters>
                </asp:LinqDataSource>
            </td>
        </tr>
        <tr>
            <td align="right" class="style5">
                <asp:Label ID="Label14" runat="server" Text="อีเมล์"></asp:Label>
            </td>
            <td class="style6">
                <asp:TextBox ID="TextBox9" runat="server" TextMode="Email" CssClass="textbox"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="TextBox9"
                Display="Dynamic" ErrorMessage="Amount is required.">*</asp:RequiredFieldValidator>
            </td>
            <td align="right" class="style7">
                &nbsp;</td>
            <td align="right" class="style8">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td align="right" class="style5">
                <asp:Label ID="Label16" runat="server" Text="เบอร์โทรศัพท์"></asp:Label>
            </td>
            <td class="style6">
                <asp:TextBox ID="TextBox11" runat="server" CssClass="textbox"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="TextBox11"
                Display="Dynamic" ErrorMessage="Amount is required.">*</asp:RequiredFieldValidator>
            </td>
            <td align="right" class="style7">
                &nbsp;</td>
            <td align="right" class="style8" rowspan="2">
                <asp:Button ID="Button1" runat="server" OnClientClick="return confirm('ยืนยันการเพิ่มข้อมูล')" Text="เพิ่มข้อมูล" 
                    onclick="Button1_Click" Height="38px" Width="116px" CssClass="myButton" />
                </td>
            <td rowspan="2">
                <asp:Button ID="Button2" runat="server" OnClientClick="return confirm('ยืนยันการยกเลิกรายการ')" Height="37px" onclick="Button2_Click" 
                    Text="ยกเลิก" Width="109px" CssClass="myButton" />
            </td>
        </tr>
        <tr>
            <td align="right" class="style5">
                <asp:Label ID="Label15" runat="server" Text="รหัสผ่านเข้าสู่ระบบ"></asp:Label>
            </td>
            <td class="style6">
                <asp:TextBox ID="TextBox10" runat="server" TextMode="Password" 
                    CssClass="textbox"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" ControlToValidate="TextBox10"
                Display="Dynamic" ErrorMessage="Amount is required.">*</asp:RequiredFieldValidator>
            </td>
            <td align="right" class="style7">
                &nbsp;</td>
        </tr>
        <tr>
            <td align="right" class="style5">
                &nbsp;</td>
            <td class="style6">
                &nbsp;</td>
            <td align="right" class="style7">
                &nbsp;</td>
            <td align="right" class="style8">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        </table>
&nbsp;
</fieldset>
    </ContentTemplate>
    </asp:UpdatePanel>

</asp:Content>

